package com.un.ebs.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author liubo
 * @since 2019/9/25 21:24
 */
@Getter
public enum ScopeEnum implements IEnum {

    Application(1, "应用"),
    Tenant(2, "租户");

    ScopeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;

    private final String desc;

    @Override
    public int getCode() {
        return value;
    }
}
